
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>新增新闻</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/news/dosave" method="post" enctype="multipart/form-data">

新闻标题:<input type="text" name="title" /><br/><br/>
描述:<input type="text" name="review"/><br/><br/>
选择类别:<select name="prentId">
    <c:forEach items="${plist}" var="it">

        <option value="${it.id}">${it.typeName}</option>
    </c:forEach>
</select> <br/><br/>
作者:<input type="text" name="author"/><br/><br/>
详情:<textarea name="newsContent"></textarea> <br/><br/>
封面:<input type="file" name="a_newsImg"/><br/><br/>
置顶:<input type="radio" name="isTop" value="1"/>是<input type="radio" name="isTop" value="0"/>否<br/><br/>
创建日期:<input type="text" name="createDate"/><br/><br/>
<input type="submit" value="新增新闻"/>

</form>
</body>
</html>
